package com.arnold.service;

import com.arnold.entity.ResponseData;
import com.arnold.entity.goods.Goods;
import com.arnold.goods.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by arnold.zhu on 2017/9/27.
 */
@Service
public class TestService {

    @Autowired
    private GoodsService goodsService;

    public ResponseData buyGoods(Goods goods) {
        return goodsService.buyGoods(goods);
    }

    public ResponseData findAll() {
        ResponseData responseData = goodsService.findItemByPage(1, 2);
        return responseData;
    }

}
